package com.ruitu.mall_98_seller.mvp.model;

import com.ruitu.arad.api.BaseResult;
import com.ruitu.arad.api.RxUtil;
import com.ruitu.arad.base.BaseModel;
import com.ruitu.mall_98_seller.dao.http.APIRetrofit;
import com.ruitu.router_module.bean.User;

import io.reactivex.Observable;

public class UserModel {

    public static class LoginM extends BaseModel {
        public Observable<BaseResult<User>> login(String uName, String pwd) {
            return APIRetrofit.getDefault()
                    .login(uName, pwd)
                    .compose(RxUtil.<BaseResult<User>>subIoObMain());
        }
    }
}
